home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / GRAPHICS / BOB.ZIP / DATA.H < prev   
Encoding:
C/C++ Source or Header  |  1995-07-24  |  3.8 KB  |  128 lines

  1. /*
  2.     This is the header file of body.cpp that contains all definetions,
  3.     variables declaration and pre-set data.
  4. */
  5.  
  6. # define ICONW 22
  7. # define ICONH 21
  8. # define HANDW 8
  9. # define HANDH 3
  10. # define LEGW    11
  11. # define LEGH     12
  12. # define I -1
  13. # define ENEMY 16
  14. # define LEFT    20
  15. # define RIGHT (SCRNW-20-ICONW)
  16. # define BODYINC 3
  17.  
  18. short body [1][ICONW][ICONH] = {
  19. {
  20.     -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
  21.     -1,-1,-1,-1,99,99,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
  22.     -1,-1,-1,-1,-1,99,99,99,-1,-1,-1,-1, 1, 1, 1, 1, 1,-1,-1,-1,-1,
  23.     -1,-1,-1,-1,-1,-1,-1,99,99,99, 1, 1, 1, 1, 1, 1, 1, 1, 1,-1,-1,
  24.     -1,-1,-1,-1,-1,-1,-1,-1,-1,99,99, 1, 1, 1, 1, 1,14,14,14, 1,-1,
  25.  
  26.     -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,15,99, 1,14,14,14,14,14, 1, 1,
  27.     -1, 4,-1,-1,-1,-1,-1,-1,-1,15,15,15,15,15,15,14,14,14, 1, 1, 1,
  28.      4,20, 4, 4,-1,15,15,15,15,15, 0, 0,15,15,15,15,15,14, 1, 1, 1,
  29.      4,20,15,20,15,15,15,15,15,15,15,15,15,15,15,15,28,15, 1, 1, 1,
  30.      4, 4, 4,15,15,15,15,15,15,15,15,15,15,15,15,28,30,15,15, 1, 1,
  31.  
  32.     -1,-1,-1,15,15,15,15,15,15,15,15,15,15,28,28,28,30,15,24,24,-1,
  33.     -1,-1,-1,15,15,22, 0,15,15,15,15,15,-1,-1,28,30,15,15,24,24,-1,
  34.     -1,-1,-1,-1,22,15,15,15,15,15,-1,-1,-1,-1,-1,15,15, 0,24, 0,24,
  35.     -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,15,15,24, 0,24,-1,
  36.     -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,15,15,15,24, 0,24,-1,
  37.  
  38.     -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,15,15,15,15,24,24,24,-1,
  39.     -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,15,15,15,15,-1,24,24,-1,
  40.     -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,15,15,15,26,-1,-1,-1,-1,
  41.     -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,15,15,20,26,-1,15,-1,-1,
  42.     -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,15,15,15,26,15,-1,-1,-1,
  43.  
  44.     -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,15,15,15,15,-1,-1,-1,
  45.     -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,15,15,-1,-1,-1,-1,
  46. },
  47. };
  48.  
  49. short hand [3][10][10]= {
  50. {
  51. -1,26,26,26,26,26,26,26,
  52.  
  53. 30,30,30,30,30,30,30,30,
  54. 30,30,30,-1,-1,-1,-1,-1,
  55. },
  56.  
  57.  
  58. };
  59.  
  60. short leg [4][LEGW][LEGH]= {
  61. {
  62. -1,-1,-1,-1,-1,-1,15,15,15,-1,-1,-1,
  63. -1,15,-1,-1,-1,15,15,15,15,-1,-1,-1,
  64. 15,15,15,-1,15,15,15,15,15,-1,-1,-1,
  65. 15,15,15,15,15,15,15,-1,-1,-1,-1,-1,
  66. -1,-1,15,15,15,15,-1,-1,-1,-1,-1,-1,
  67.  
  68. -1,-1,15,15,15,15,-1,-1,-1,-1,-1,-1,
  69. -1,-1,-1,15,15,15,-1,-1,-1,-1,-1,-1,
  70. -1,-1,-1,-1,15,-1,-1,-1,-1,-1,-1,-1,
  71. -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
  72. -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
  73.  
  74. -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
  75. },
  76. {
  77. -1,-1,-1,-1,-1,-1,15,15,15,-1,-1,-1,
  78. -1,-1,-1,-1,-1,-1,15,15,15,-1,-1,-1,
  79. -1,-1,-1,-1,-1,15,15,15,15,-1,-1,-1,
  80. -1,-1,-1,-1,-1,15,15,15,-1,-1,-1,-1,
  81. 15,15,-1,-1,15,15,15,15,-1,-1,-1,-1,
  82.  
  83. 15,15,15,15,15,15,15,-1,-1,-1,-1,-1,
  84. 15,15,15,15,15,15,15,-1,-1,-1,-1,-1,
  85. -1,-1,15,15,15,15,15,-1,-1,-1,-1,-1,
  86. -1,-1,-1,15,15,15,15,-1,-1,-1,-1,-1,
  87. -1,-1,-1,-1,-1,15,-1,-1,-1,-1,-1,-1,
  88.  
  89. -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
  90. },
  91. {
  92. -1,-1,-1,-1,-1,-1,15,15,15,-1,-1,-1,
  93. -1,-1,-1,-1,-1,-1,15,15,15,-1,-1,-1,
  94. -1,-1,-1,-1,-1,-1,15,15,15,-1,-1,-1,
  95. -1,-1,-1,-1,-1,-1,-1,15,15,-1,15,-1,
  96. -1,-1,-1,-1,-1,-1,-1,15,15,15,15,15,
  97.  
  98. -1,-1,-1,-1,-1,-1,-1,15,15,15,15,15,
  99. -1,-1,-1,-1,-1,-1,-1,-1,15,15,15,-1,
  100. -1,-1,-1,-1,-1,-1,-1,-1,15,15,15,-1,
  101. -1,-1,-1,-1,-1,-1,-1,-1,15,15,-1,-1,
  102. -1,-1,-1,-1,-1,-1,-1,15,15,15,-1,-1,
  103.  
  104. -1,-1,-1,-1,-1,-1,-1,15,15,-1,-1,-1,
  105. },
  106. {
  107. -1,-1,-1,-1,-1,-1,15,15,15,-1,-1,-1,
  108. -1,-1,-1,-1,-1,-1,15,15,15,-1,15,15,
  109. -1,-1,-1,-1,-1,-1,15,15,15,15,15,15,
  110. -1,-1,-1,-1,-1,-1,-1,15,15,15,15,15,
  111. -1,-1,-1,-1,-1,-1,-1,15,15,15,15,15,
  112.  
  113. -1,-1,-1,-1,-1,-1,-1,-1,15,15,15,15,
  114. -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,15,
  115. -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,15,15,
  116. -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
  117. -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
  118.  
  119. -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
  120. },
  121. };
  122.  
  123.  
  124. int mytankangle= 0;
  125. int temp [32][3];
  126. int handinc= 1, leginc= 1;
  127. int spritx= 100, sprity= SCRNH/2-20, handx1= 0, handx2= 5, leg1= 0, leg2= 3;
  128. int direction = 0;